import mail

message = """
邮件正文2
此致
刘煜
"""

subject = "测试邮件2"
# 将上面发送邮件的代码封装成函数
# sendmail(发件人邮箱, 收件人邮箱, 邮件标题, 邮件正文)

mail.sendmail("tinytaro@qq.com", "geez@163.com", subject, message)
